const router = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login',
    meta: {
      title: '登录',
      moduleName: 'index'
    },
    component: resolve => require(['@/views/login'], resolve)
    // component: resolve => require(['@/modules/form/views/formComponents/formDialog/addForm'], resolve)
  },
  {
    path: '*',
    component: resolve => require(['@/views/error/404'], resolve),
    meta: {
      moduleName: 'index'
    }
  }
  // {
  //   path: '/loginerror',
  //   name: 'loginerror',
  //   meta: {
  //     title: '登录失败',
  //     moduleName: 'index'
  //   },
  //   component: resolve => require(['@/views/error/loginError'], resolve)
  // },
  // {
  //   path: '/systemBusy',
  //   name: 'systemBusy',
  //   component: resolve => require(['@/views/error/systemBusy'], resolve),
  //   meta: {
  //     moduleName: 'index'
  //   }
  // },
  // {
  //   path: '/vipexpire',
  //   name: 'vipexpire',
  //   component: resolve => require(['@/views/vipexpire'], resolve),
  //   meta: {
  //     isShowSidebar: false,
  //     title: '超时',
  //     moduleName: 'index'
  //   }
  // },
  // {
  //   path: '/uninitialized',
  //   name: 'uninitialized',
  //   component: resolve => require(['@/views/uninitialized'], resolve),
  //   meta: {
  //     isShowSidebar: false,
  //     title: '租户未开通',
  //     moduleName: 'index'
  //   }
  // },
  // {
  //   path: '/disable',
  //   name: 'disable',
  //   component: resolve => require(['@/views/user/disable'], resolve),
  //   meta: {
  //     isShowSidebar: false,
  //     title: '账户被禁用',
  //     moduleName: 'index'
  //   }
  // },
  // {
  //   path: '/disableChildAdmin',
  //   name: 'disableChildAdmin',
  //   component: resolve => require(['@/views/user/disableChildAdmin'], resolve),
  //   meta: {
  //     isShowSidebar: false,
  //     title: '账户被禁用',
  //     moduleName: 'index'
  //   }
  // },
  // {
  //   path: '/loginSuccess',
  //   name: 'loginSuccess',
  //   component: resolve => require(['@/views/login/loginSuccess'], resolve),
  //   meta: {
  //     isShowSidebar: false,
  //     title: '登录成功',
  //     moduleName: 'index'
  //   }
  // },
  // {
  //   path: '/directoryInstallationGuide',
  //   name: 'directoryInstallationGuide',
  //   component: resolve => require(['@/views/user/directoryInstallationGuide'], resolve),
  //   meta: {
  //     isShowSidebar: false,
  //     title: '通讯录安装指引',
  //     moduleName: 'index'
  //   }
  // },
  // {
  //   path: '/expired',
  //   name: 'expired',
  //   component: resolve => require(['@/views/accountExpired'], resolve),
  //   meta: {
  //     isShowSidebar: false,
  //     title: 'VIP版本过期',
  //     moduleName: 'index'
  //   }
  // }
]
export default router
